Initial Debian packaging
authorPeter Colberg <peter@colberg.org>
Sun, 1 Nov 2015 18:31:00 +0000 (13:31 -0500)
committerPeter Colberg <peter@colberg.org>
Sun, 1 Nov 2015 18:31:00 +0000 (13:31 -0500)
13 files changed:
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/docs [new file with mode: 0644]
debian/libutf8proc-dev.install [new file with mode: 0644]
debian/libutf8proc1.install [new file with mode: 0644]
debian/libutf8proc1.symbols [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]
debian/patches/use-unicode-data.patch [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/source/format [new file with mode: 0644]
debian/watch [new file with mode: 0644]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..d246c3d
--- /dev/null
@@ -0,0 +1,5 @@
+utf8proc (1.3.1-1) UNRELEASED; urgency=medium
+
+  * Initial release. (Closes: #803681)
+
+ -- Peter Colberg <peter@colberg.org>  Sun, 01 Nov 2015 13:30:40 -0500
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..ec63514
--- /dev/null
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..5003867
--- /dev/null
@@ -0,0 +1,36 @@
+Source: utf8proc
+Priority: optional
+Maintainer: Debian Julia Team <pkg-julia-devel@lists.alioth.debian.org>
+Uploaders: Peter Colberg <peter@colberg.org>, Graham Inggs <ginggs@debian.org>
+Build-Depends: debhelper (>= 9), unicode-data (>= 8.0), ttf-unifont (>= 8.0.01),
+ fontforge, perl, ruby, julia [amd64 i386]
+Standards-Version: 3.9.6
+Section: libs
+Homepage: http://julialang.org/utf8proc/
+Vcs-Git: git://anonscm.debian.org/pkg-julia/utf8proc.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-julia/utf8proc.git
+
+Package: libutf8proc1
+Architecture: any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: C library for processing UTF-8 Unicode data (shared library)
+ utf8proc is a small, clean C library that provides Unicode normalization,
+ case-folding, and other operations for data in the UTF-8 encoding, supporting
+ Unicode version 8.0.
+ .
+ This package contains a shared version of the library.
+
+Package: libutf8proc-dev
+Section: libdevel
+Architecture: any
+Multi-Arch: same
+Depends: ${misc:Depends}, libutf8proc1 (= ${binary:Version})
+Description: C library for processing UTF-8 Unicode data (development files)
+ utf8proc is a small, clean C library that provides Unicode normalization,
+ case-folding, and other operations for data in the UTF-8 encoding, supporting
+ Unicode version 8.0.
+ .
+ This package contains the development files needed to compile software using
+ utf8proc.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..85f1dda
--- /dev/null
@@ -0,0 +1,71 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: utf8proc
+Source: http://julialang.org/utf8proc/
+
+Files: *
+Copyright: 2009, 2013 Public Software Group e. V., Berlin, Germany
+           2014-2015 Steven G. Johnson, Jiahao Chen, Peter Colberg, Tony Kelman, Scott P. Jones, and other contributors: https://github.com/JuliaLang/utf8proc/contributors
+License: Expat
+
+Files: data/data_generator.rb
+Copyright: 2009, 2013 Public Software Group e. V., Berlin, Germany
+           1991-2007 Unicode, Inc.
+License: Expat and Unicode
+
+Files: utf8proc_data.c
+Copyright: 1991-2007 Unicode, Inc.
+License: Unicode
+
+Files: debian/*
+Copyright: 2015 Peter Colberg <peter@colberg.org>
+License: Expat
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+License: Unicode
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of the Unicode data files and any associated documentation (the "Data
+ Files") or Unicode software and any associated documentation (the
+ "Software") to deal in the Data Files or Software without restriction,
+ including without limitation the rights to use, copy, modify, merge,
+ publish, distribute, and/or sell copies of the Data Files or Software, and
+ to permit persons to whom the Data Files or Software are furnished to do
+ so, provided that (a) the above copyright notice(s) and this permission
+ notice appear with all copies of the Data Files or Software, (b) both the
+ above copyright notice(s) and this permission notice appear in associated
+ documentation, and (c) there is clear notice in each modified Data File or
+ in the Software as well as in the documentation associated with the Data
+ File(s) or Software that the data or software has been modified.
+ .
+ THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
+ KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
+ THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
+ INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR
+ CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
+ USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ PERFORMANCE OF THE DATA FILES OR SOFTWARE.
+ .
+ Except as contained in this notice, the name of a copyright holder shall
+ not be used in advertising or otherwise to promote the sale, use or other
+ dealings in these Data Files or Software without prior written
+ authorization of the copyright holder.
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..b43bf86
--- /dev/null
@@ -0,0 +1 @@
+README.md
diff --git a/debian/libutf8proc-dev.install b/debian/libutf8proc-dev.install
new file mode 100644 (file)
index 0000000..a3c8f6c
--- /dev/null
@@ -0,0 +1,3 @@
+usr/include/*
+usr/lib/*/lib*.a
+usr/lib/*/lib*.so
diff --git a/debian/libutf8proc1.install b/debian/libutf8proc1.install
new file mode 100644 (file)
index 0000000..3ddde58
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/*/lib*.so.*
diff --git a/debian/libutf8proc1.symbols b/debian/libutf8proc1.symbols
new file mode 100644 (file)
index 0000000..358d190
--- /dev/null
@@ -0,0 +1,27 @@
+libutf8proc.so.1 libutf8proc1 #MINVER#
+ utf8proc_NFC@Base 1.3
+ utf8proc_NFD@Base 1.3
+ utf8proc_NFKC@Base 1.3
+ utf8proc_NFKD@Base 1.3
+ utf8proc_category@Base 1.3
+ utf8proc_category_string@Base 1.3
+ utf8proc_charwidth@Base 1.3
+ utf8proc_codepoint_valid@Base 1.3
+ utf8proc_combinations@Base 1.3
+ utf8proc_decompose@Base 1.3
+ utf8proc_decompose_char@Base 1.3
+ utf8proc_encode_char@Base 1.3
+ utf8proc_errmsg@Base 1.3
+ utf8proc_get_property@Base 1.3
+ utf8proc_grapheme_break@Base 1.3
+ utf8proc_iterate@Base 1.3
+ utf8proc_map@Base 1.3
+ utf8proc_properties@Base 1.3
+ utf8proc_reencode@Base 1.3
+ utf8proc_sequences@Base 1.3
+ utf8proc_stage1table@Base 1.3
+ utf8proc_stage2table@Base 1.3
+ utf8proc_tolower@Base 1.3
+ utf8proc_toupper@Base 1.3
+ utf8proc_utf8class@Base 1.3
+ utf8proc_version@Base 1.3
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..6216540
--- /dev/null
@@ -0,0 +1 @@
+use-unicode-data.patch
diff --git a/debian/patches/use-unicode-data.patch b/debian/patches/use-unicode-data.patch
new file mode 100644 (file)
index 0000000..acb57ec
--- /dev/null
@@ -0,0 +1,60 @@
+Description: Use unicode-data instead of downloading external files
+ Replace external links with copies of Unicode data and GNU Unifont
+ provided by the packages unicode-data and ttf-unifont, respectively.
+Author: Peter Colberg <peter@colberg.org>
+Forwarded: not-needed
+Last-Update: 2015-11-01
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/data/Makefile
++++ b/data/Makefile
+@@ -23,10 +23,10 @@ utf8proc_data.c.new: data_generator.rb U
+ UNIFONT_VERSION=8.0.01
+ unifont.ttf:
+-      $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://mirrors.kernel.org/gnu/unifont/unifont-$(UNIFONT_VERSION)/unifont-$(UNIFONT_VERSION).ttf
++      cp /usr/share/fonts/truetype/unifont/unifont.ttf $@
+ unifont_upper.ttf:
+-      $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://mirrors.kernel.org/gnu/unifont/unifont-$(UNIFONT_VERSION)/unifont_upper-$(UNIFONT_VERSION).ttf
++      cp /usr/share/fonts/truetype/unifont/unifont_upper.ttf $@
+ %.sfd: %.ttf
+       $(FONTFORGE) -lang=ff -c "Open(\"$<\");Save(\"$@\");Quit(0);"
+@@ -35,28 +35,28 @@ CharWidths.txt: charwidths.jl unifont.sf
+       $(JULIA) charwidths.jl > $@
+ UnicodeData.txt:
+-      $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/UNIDATA/UnicodeData.txt
++      cp /usr/share/unicode/UnicodeData.txt $@
+ EastAsianWidth.txt:
+-      $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/UNIDATA/EastAsianWidth.txt
++      cp /usr/share/unicode/extracted/DerivedEastAsianWidth.txt $@
+ GraphemeBreakProperty.txt:
+-      $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/UCD/latest/ucd/auxiliary/GraphemeBreakProperty.txt
++      cp /usr/share/unicode/auxiliary/GraphemeBreakProperty.txt $@
+ DerivedCoreProperties.txt:
+-      $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/UNIDATA/DerivedCoreProperties.txt
++      cp /usr/share/unicode/DerivedCoreProperties.txt $@
+ CompositionExclusions.txt:
+-      $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/UNIDATA/CompositionExclusions.txt
++      cp /usr/share/unicode/CompositionExclusions.txt $@
+ CaseFolding.txt:
+-      $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/UNIDATA/CaseFolding.txt
++      cp /usr/share/unicode/CaseFolding.txt $@
+ NormalizationTest.txt:
+-      $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/UNIDATA/NormalizationTest.txt
++      bzip2 -d < /usr/share/unicode/NormalizationTest.txt.bz2 > $@
+ GraphemeBreakTest.txt:
+-      $(CURL) $(CURLFLAGS) $(URLCACHE)http://www.unicode.org/Public/UCD/latest/ucd/auxiliary/GraphemeBreakTest.txt | $(PERL) -pe 's,÷,/,g;s,×,+,g' > $@
++      $(PERL) -pe 's,÷,/,g;s,×,+,g' < /usr/share/unicode/auxiliary/GraphemeBreakTest.txt > $@
+ clean:
+       rm -f UnicodeData.txt EastAsianWidth.txt GraphemeBreakProperty.txt DerivedCoreProperties.txt CompositionExclusions.txt CaseFolding.txt NormalizationTest.txt GraphemeBreakTest.txt CharWidths.txt unifont*.ttf unifont*.sfd
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..b22c88e
--- /dev/null
@@ -0,0 +1,23 @@
+#!/usr/bin/make -f
+%:
+       dh $@
+
+override_dh_auto_build:
+       dh_auto_build
+ifneq (,$(filter $(DEB_HOST_ARCH),amd64 i386))
+       # For architectures that provide a julia package, reproduce the
+       # complete build process, by generating `utf8proc_data.c` from
+       # the Unicode data and GNU Unifont, and comparing with the one
+       # shipped by upstream.
+       dh_auto_build -- data
+       diff data/utf8proc_data.c.new utf8proc_data.c
+endif
+
+override_dh_auto_install:
+       dh_auto_install -- prefix=/usr libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
+
+override_dh_installchangelogs:
+       dh_installchangelogs NEWS.md
+
+get-orig-source:
+       uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-current-version
diff --git a/debian/source/format b/debian/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644 (file)
index 0000000..7964cda
--- /dev/null
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/utf8proc-$1\.tar\.gz/ \
+https://github.com/JuliaLang/utf8proc/tags .*/v?(\d\S*)\.tar\.gz